package Volume1.ch6;

/**
 * @Auther jacob
 * @Date 2020/8/8 02:23
 */
public class EmployeeCloneTest {
    public static void main(String[] args) {
        try {
            EmployeeCloneDemo original = new EmployeeCloneDemo("aaa", 500);
            original.setHireDay(2000, 1, 1);

            EmployeeCloneDemo copy = original.clone();
            copy.raiseSalary(10);
            System.out.println(original.toString());
            System.out.println(copy.toString());

        }catch (Exception e){

        }
    }
}
